//package org.springframework.aop.interceptor;
//
//import org.aopalliance.intercept.MethodInterceptor;
//import org.aopalliance.intercept.MethodInvocation;
//
//import java.lang.reflect.Method;
//import java.util.Arrays;
//
///**
// * @Name UserServiceInterceptor
// * @Description: UserService 类方法拦截器
// * @Version v1.0.0
// * @Author: lichao
// * @Date: 2024-03-27 16:53:25
// **/
//public class UserServiceInterceptor implements MethodInterceptor {
//
//    @Override
//    public Object invoke(MethodInvocation invocation) throws Throwable {
//        System.out.println("目标方法前置处理, 获取目标方法入参: ");
//        Object[] arguments = invocation.getArguments();
//        System.out.println("目标方法入参: " + arguments[0]);
//        Object result = invocation.proceed();
//        System.out.println("目标方法后置处理, 修改返回结果: " + result + " -> 李四");
//        result = "李四";
//        return result;
//    }
//}
//
